<h2>Kritik dan Saran Domba Garut Online</h2>

Berikut ini daftar semua kritik dan saran di Domba Garut Online.

<br/><br/>halaman :<?php echo $page_links; ?><br/>

<table width="100%">
    <tr>
        <th>ID</th>
        <th>Pengirim</th>
        <th>Alamat</th>
        <th>No. Telepon</th>
        <th>Email</th>
        <th>Status</th>
        <th width="1%">Aksi</th>
    </tr>
    <?php $i = 1; foreach ($daftar_kritiksaran as $kritik) : ?>
    <tr <?php if($i % 2) echo "style='background-color: #E0E0E0;'"; ?>>
        <td rowspan="2"><?php echo $kritik['id_kritiksaran']; ?></td>
        <td><?php echo $kritik['nama']; ?> <?php if ($kritik['id_user'] != 0) echo '<strong>(userid : ' . $kritik['id_user'] . ')</strong>'; ?></td>
        <td><?php echo $kritik['alamat']; ?></td>
        <td><?php echo $kritik['telp']; ?></td>
        <td><?php echo $kritik['email']; ?></td>
        <td style="text-align: center"><?php echo ($kritik['approved']) ? '<span style="color: green">Approved</span>' : '<span style="color: red">Unapproved</span>'; ?></td>
        <td rowspan="2">
            <?php echo ($kritik['approved']) ? anchor('admin/kritik_saran/unapprove/' . $kritik['id_kritiksaran'], img(array('src' => "images/unapprove.png", 'width' => '22', 'height' => '22', 'border' => '0', 'title' => 'Unapprove'))) : anchor('admin/kritik_saran/approve/' . $kritik['id_kritiksaran'], img(array('src' => "images/approve.png", 'width' => '22', 'height' => '22', 'border' => '0', 'title' => 'Approve'))); ?><?php // echo anchor('admin/kritik_saran/balas/' . $kritik['id_kritiksaran'], "Balas"); ?><?php echo anchor('admin/kritik_saran/hapus/' . $kritik['id_kritiksaran'], img(array('src' => "images/hapus.png", 'width' => '22', 'height' => '22', 'border' => '0', 'title' => 'Hapus', 'onclick' => "if(!confirm('Yakin menghapus?')) return false;"))); ?>
        </td>
    </tr>
    <tr <?php if($i % 2) echo "style='background-color: #E0E0E0;'"; ?>>
        <td colspan="5">
            <?php echo $kritik['isi_kritiksaran']; ?><br/><br/>
            <em>Pada <strong><?php echo $kritik['tanggal_posting']; ?></strong> dari IP <strong><?php echo $kritik['ip']; ?></strong></em>
        </td>
    </tr>
    <?php $i++; endforeach; ?>
</table>

halaman :<?php echo $page_links; ?>

<br/>
<br/>